 GlobalWaiting = fgui.extension_class(GComponent);

 function GlobalWaiting:ctor()
 	self._obj = self:GetChild("n1");
 	print("OnShow...");
 end

function GlobalWaiting:OnUpdate()
	print(self);
	print(GlobalWaiting.base);
	-- GlobalWaiting.base.OnUpdate();
	print("OnUpdate...");

	local i = self._obj.rotation;
	i = i + 5;
	if (i > 360) then
		i = i % 360;
	end
	self._obj.rotation = i;
end